'''
Created on Apr 19, 2009

@author: Administrator
'''
from django.conf.urls.defaults import *
from django.conf import settings
from com.ericyang.groupshopping.addressbook.models import AddressBook
from com.ericyang.common.web import redirect, page404, response

urlpatterns = patterns('',
                       
    #create a new address book
    (r'^new/$', "com.ericyang.groupshopping.addressbook.views.createAddressBook"),
    
    #list address books
    (r'^list/$', "com.ericyang.groupshopping.addressbook.views.list_AddressBook"),
    
    #edit a address book
    (r'^([^/]+)/delete/$', 'com.ericyang.groupshopping.addressbook.views.delete_AddressBook'),
    
    #edit a address book
    (r'^([^/]+)/$', 'com.ericyang.groupshopping.addressbook.views.editAddressBook'),
    
    #default to create a new address book
    (r'^', "com.ericyang.groupshopping.addressbook.views.list_AddressBook"),
)
